<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-CN">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.3">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Hexo, NexT" />





  <link rel="alternate" href="/atom.xml" title="Likianta Blog" type="application/atom+xml" />






<meta name="description" content="注意：以下内容基于帧率为24FPS的视频讲解。">
<meta property="og:type" content="article">
<meta property="og:title" content="Aegisub时间码格式详解">
<meta property="og:url" content="https://likianta.coding.me/2018/0213-224002/index.html">
<meta property="og:site_name" content="Likianta Blog">
<meta property="og:description" content="注意：以下内容基于帧率为24FPS的视频讲解。">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://ozurciydg.bkt.clouddn.com/18-2-19/37844803.jpg">
<meta property="og:image" content="http://ozurciydg.bkt.clouddn.com/18-2-19/56777960.jpg">
<meta property="og:updated_time" content="2018-02-19T06:07:19.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Aegisub时间码格式详解">
<meta name="twitter:description" content="注意：以下内容基于帧率为24FPS的视频讲解。">
<meta name="twitter:image" content="http://ozurciydg.bkt.clouddn.com/18-2-19/37844803.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://likianta.coding.me/2018/0213-224002/"/>





  <title>Aegisub时间码格式详解 | Likianta Blog</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Likianta Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tutorials">
          <a href="/tags/tutorial-catalog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            教程
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://likianta.coding.me/2018/0213-224002/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Likianta">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="http://ozurciydg.bkt.clouddn.com/18-2-12/72826549.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Likianta Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Aegisub时间码格式详解</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-02-13T22:40:02+08:00">
                2018-02-13
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/adobe-extendscript/" itemprop="url" rel="index">
                    <span itemprop="name">Adobe脚本语言学习</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1,696
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  8
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>注意：以下内容基于帧率为24FPS的视频讲解。</p>
<a id="more"></a>
<h1 id="Aegisub时间码"><a href="#Aegisub时间码" class="headerlink" title="Aegisub时间码"></a>Aegisub时间码</h1><p>如图所示是Aegisub的工作界面：</p>
<p><img src="http://ozurciydg.bkt.clouddn.com/18-2-19/37844803.jpg" alt=""></p>
<p>其中“开始/结束时间”是<code>0:00:00.00</code>的形式，小数点后有<strong>两位</strong>，代表的是多少毫秒，比如<code>0:00:06.81</code>就是6秒+810毫秒。</p>
<p>而本文中的另一个主角是“实际时间”，其形式为<code>0:00:00.000</code>，小数点后有<strong>三位</strong>，与前者的区别可不光是更加精确了，更重要的是同一时间下它们显示的时间值是不一样的，其换算关系为：</p>
<p>开始时间 = 实际时间 - 半帧的时间 再应用“去尾法”得到</p>
<p>举几个例子：</p>
<p>（注：24fps的视频，即 24帧 = 1s，换算得 1帧 = 1000/24ms，半帧 = 500/24ms ≈ 21ms）</p>
<table>
<thead>
<tr>
<th>实际时间</th>
<th>对应的“开始时间”</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>0:00:06.840</code></td>
<td><code>0:00:06.81</code></td>
<td>840 - 21 = 819ms ≈ 0.81s</td>
</tr>
<tr>
<td><code>0:00:06.881</code></td>
<td><code>0:00:06.86</code></td>
<td>881 - 21 = 860ms ≈ 0.86s</td>
</tr>
<tr>
<td><code>0:00:09.009</code></td>
<td><code>0:00:08.98</code></td>
<td>1009 - 21 = 988ms ≈ 0.98s</td>
</tr>
<tr>
<td><code>0:00:00.000</code></td>
<td><code>0:00:00.00</code></td>
<td>零秒处是特例</td>
</tr>
</tbody>
</table>
<h1 id="Aegisub每秒“溢出”"><a href="#Aegisub每秒“溢出”" class="headerlink" title="Aegisub每秒“溢出”"></a>Aegisub每秒“溢出”</h1><p>Aegisub的<strong>实际时间</strong>有一个特点，在24fps（每秒有0-23帧）的视频中，每秒的第0帧的毫秒数会递增“1ms”，如下表所示：</p>
<table>
<thead>
<tr>
<th>第几秒（总帧数）</th>
<th><strong>当前秒的第0帧的实际时间</strong></th>
<th>对应的“开始时间”</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>0 (0)</td>
<td><code>0:00:00.000</code></td>
<td><code>0:00:00.00</code></td>
<td>零秒处是特例</td>
</tr>
<tr>
<td>1 (24)</td>
<td><code>0:00:01.001</code></td>
<td><code>0:00:00.98</code></td>
<td>1001 - 21 = 980ms ≈ 0.98s</td>
</tr>
<tr>
<td>2 (48)</td>
<td><code>0:00:02.002</code></td>
<td><code>0:00:01.98</code></td>
<td>1002 - 21 = 981ms ≈ 0.98s</td>
</tr>
<tr>
<td>3 (72)</td>
<td><code>0:00:03.003</code></td>
<td><code>0:00:02.98</code></td>
<td>1003 - 21 = 982ms ≈ 0.98s</td>
</tr>
<tr>
<td>4 (96)</td>
<td><code>0:00:04.004</code></td>
<td><code>0:00:03.98</code></td>
<td>1004 - 21 = 983ms ≈ 0.98s</td>
</tr>
<tr>
<td>5 (120)</td>
<td><code>0:00:05.005</code></td>
<td><code>0:00:04.98</code></td>
<td>1005 - 21 = 984ms ≈ 0.98s</td>
</tr>
<tr>
<td>6 (144)</td>
<td><code>0:00:06.006</code></td>
<td><code>0:00:05.98</code></td>
<td>1006 - 21 = 985ms ≈ 0.98s</td>
</tr>
<tr>
<td>…</td>
<td>…</td>
<td>…</td>
<td></td>
</tr>
<tr>
<td>30 (720)</td>
<td><code>0:00:30.030</code></td>
<td><code>0:00:30.00</code></td>
<td>30 - 21 = 9ms ≈ 0.00s</td>
</tr>
<tr>
<td>60 (1440)</td>
<td><code>0:01:00.060</code></td>
<td><code>0:01:00.03</code></td>
<td>60 - 21 = 39ms ≈ 0.03s</td>
</tr>
<tr>
<td>…</td>
<td>…</td>
<td>…</td>
</tr>
</tbody>
</table>
<p>从上表可以发现一个规律，每增加一秒，其实际时间的第0帧的时间值会累加1ms，我们把这种现象叫做“溢出”，那么可以推算当溢出量累积到1000ms时（也就是在16分40秒的时候），那么会出现“加一秒”的情况（由于手头没有这么长的视频，所以暂时还没有实际验证过对不对）。</p>
<p>那么了解了这么一个规律，究竟有什么用呢？下面的实战是一个很好的例子：</p>
<h1 id="实战：将Aegisub时间码转换为AE时间码"><a href="#实战：将Aegisub时间码转换为AE时间码" class="headerlink" title="实战：将Aegisub时间码转换为AE时间码"></a>实战：将Aegisub时间码转换为AE时间码</h1><p>Aegisub的时间码格式为<code>时：分：秒.毫米</code>；</p>
<p>Adobe After Effects（后面简称“AE”）的时间码格式为<code>时：分：秒：帧</code>。</p>
<p>现在我们手上有一个从Aegisub保存下来的<code>.ass</code>文件，用记事本打开里面的内容为：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br></pre></td><td class="code"><pre><span class="line">[Script Info]</span><br><span class="line">; Script generated by Aegisub 3.2.2</span><br><span class="line">; http://www.aegisub.org/</span><br><span class="line">Title: </span><br><span class="line">Original Script: </span><br><span class="line">Original Translation: </span><br><span class="line">Original Editing: </span><br><span class="line">Original Timing: </span><br><span class="line">Original Script Checking: </span><br><span class="line">ScriptType: v4.00+</span><br><span class="line">Timer: 100.0000</span><br><span class="line">WrapStyle: 0</span><br><span class="line">ScaledBorderAndShadow: Yes</span><br><span class="line"></span><br><span class="line">[Aegisub Project Garbage]</span><br><span class="line">Audio File: 开花火腿芝士面包 合成视频.mp4</span><br><span class="line">Video File: 开花火腿芝士面包 合成视频.mp4</span><br><span class="line">Video AR Mode: 4</span><br><span class="line">Video AR Value: 1.777778</span><br><span class="line">Video Zoom Percent: 0.500000</span><br><span class="line">Active Line: 2</span><br><span class="line">Video Position: 1440</span><br><span class="line"></span><br><span class="line">[V4+ Styles]</span><br><span class="line">Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding</span><br><span class="line">Style: Default,Arial,20,&amp;H00FFFFFF,&amp;H000000FF,&amp;H00000000,&amp;H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1</span><br><span class="line">Style: 封面白粗,Heiti SC,30,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00FFFFFF,0,0,0,0,100,100,0,0,1,0,0,2,10,10,10,1</span><br><span class="line">Style: 封面黑粗,Heiti SC,30,&amp;H00000000,&amp;H00000000,&amp;H00000000,&amp;H00000000,0,0,0,0,100,100,0,0,1,0.6,0,2,10,10,10,1</span><br><span class="line">Style: 白色字体,Heiti SC,32,&amp;H00000001,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00000000,0,0,0,0,100,100,0,0,1,0.4,0.5,2,10,10,6,1</span><br><span class="line">Style: 水印,Heiti SC,16,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00000000,0,0,0,0,100,100,0,0,1,0.1,0.1,7,10,10,10,1</span><br><span class="line">Style: 注释,Heiti SC,13,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00FFFFFF,&amp;H00000000,0,0,0,0,100,100,0,0,1,0.1,0.1,8,10,10,10,1</span><br><span class="line"></span><br><span class="line">[Events]</span><br><span class="line">Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text</span><br><span class="line">Dialogue: 0,0:00:04.69,0:00:06.23,白色字体,,0,0,0,,酵母</span><br><span class="line">Dialogue: 0,0:00:06.23,0:00:08.36,白色字体,,0,0,0,,橄榄油</span><br><span class="line">Comment: 0,0:01:00.03,0:01:00.08,白色字体,,0,0,0,,橄榄油</span><br><span class="line">Dialogue: 0,0:00:08.36,0:00:10.07,白色字体,,0,0,0,,水</span><br><span class="line">Dialogue: 0,0:00:10.07,0:00:12.32,白色字体,,0,0,0,,牛奶</span><br><span class="line">Dialogue: 0,0:00:12.32,0:00:14.45,白色字体,,0,0,0,,糖</span><br><span class="line">Dialogue: 0,0:00:17.45,0:00:19.20,白色字体,,0,0,0,,面粉</span><br><span class="line">Dialogue: 0,0:00:19.20,0:00:20.91,白色字体,,0,0,0,,盐</span><br><span class="line">Dialogue: 0,0:00:28.00,0:00:31.63,白色字体,,0,0,0,,发酵30分钟</span><br><span class="line">Dialogue: 0,0:00:31.63,0:00:34.18,白色字体,,0,0,0,,巴西奶油奶酪</span><br><span class="line">Dialogue: 0,0:00:34.18,0:00:37.39,白色字体,,0,0,0,,马苏里拉奶酪</span><br><span class="line">Dialogue: 0,0:00:37.39,0:00:40.68,白色字体,,0,0,0,,火腿</span><br><span class="line">Dialogue: 0,0:01:17.30,0:01:20.05,白色字体,,0,0,0,,蛋黄液</span><br><span class="line">Dialogue: 0,0:01:25.60,0:01:27.90,白色字体,,0,0,0,,烘焙25分钟/180℃</span><br></pre></td></tr></table></figure>
<p>假设我们通过某种方法删去了里面不重要的内容，并提取出来了每条字幕的“开始时间”、“结束时间”以及“文本内容”（依次如图中的红、黄、栏框注部分）：</p>
<p><img src="http://ozurciydg.bkt.clouddn.com/18-2-19/56777960.jpg" alt=""></p>
<p>下面我们尝试着把开始时间转换成AE能够识别的时间码格式：</p>
<h2 id="第一步：还原为实际时间"><a href="#第一步：还原为实际时间" class="headerlink" title="第一步：还原为实际时间"></a>第一步：还原为实际时间</h2><p>以第一条字幕为例，其开始时间为<code>0:00:04.69</code>，那么根据之前我们发现的规律，可求得其实际时间在<code>0:00:04.711</code>到<code>0:00:04.720</code>之间。</p>
<h2 id="第二步：利用AE表达式转换为AE时间码"><a href="#第二步：利用AE表达式转换为AE时间码" class="headerlink" title="第二步：利用AE表达式转换为AE时间码"></a>第二步：利用AE表达式转换为AE时间码</h2><p>我们取<code>0:00:04.711</code>作为计算结果（与实际时间的最大误差在9ms以内，是可以接受的），先将它换算为总秒数：</p>
<p><code>0:00:04.711</code> -&gt; <code>4711(s)</code></p>
<p>然后利用AE表达式（以下为JavaScript代码）：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> t = <span class="number">4711</span>;</span><br><span class="line"><span class="keyword">var</span> FPS = <span class="number">24</span>;</span><br><span class="line"><span class="keyword">var</span> timecode = timeToCurrentFormat(t, FPS); <span class="comment">// 将总秒数根据当前视频帧率转换为AE时间码格式</span></span><br><span class="line"><span class="keyword">return</span> timecode; <span class="comment">// 得到`0:00:04:17`，即表示第四秒第17帧处</span></span><br></pre></td></tr></table></figure>
<p>这样子就转换完成了……其实并没有。</p>
<p>通过在测试中观察实际画面发现，Aegisub的帧数和AE的帧数总是相差一帧，因此我们还要再减去一帧才是AE真正的时间码：</p>
<h2 id="第三步：改进（减一帧）"><a href="#第三步：改进（减一帧）" class="headerlink" title="第三步：改进（减一帧）"></a>第三步：改进（减一帧）</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> timecode_aegisub = <span class="string">`0:00:04.69`</span>;</span><br><span class="line"><span class="keyword">var</span> frame_duration = <span class="number">0.042</span>;</span><br><span class="line"><span class="keyword">var</span> half_frame_duration = <span class="number">0.021</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">var</span> t = <span class="number">4690</span> + half_frame_duration - frame_duration;</span><br><span class="line"><span class="keyword">var</span> FPS = <span class="number">24</span>;</span><br><span class="line"><span class="keyword">var</span> timecode_ae = timeToCurrentFormat(t, FPS); <span class="comment">// 将总秒数根据当前视频帧率转换为AE时间码格式</span></span><br><span class="line"><span class="keyword">return</span> timecode_ae; <span class="comment">// 得到`0:00:04:16`，即表示第四秒第16帧处</span></span><br></pre></td></tr></table></figure>
<hr>
<h1 id="相关阅读"><a href="#相关阅读" class="headerlink" title="相关阅读"></a>相关阅读</h1>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
        <div class="post-widgets">
        

        

        
          
          <div id="needsharebutton-postbottom">
            <span class="btn">
              <i class="fa fa-share-alt" aria-hidden="true"></i>
            </span>
          </div>
        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2018/0211-213555/" rel="next" title="202 JS打开文件选择对话框">
                <i class="fa fa-chevron-left"></i> 202 JS打开文件选择对话框
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018/0214-132942/" rel="prev" title="203 使用VERSION变量控制版本输出">
                203 使用VERSION变量控制版本输出 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zNDI4MS8xMDgxOA=="></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://ozurciydg.bkt.clouddn.com/18-2-12/72826549.jpg"
                alt="Likianta" />
            
              <p class="site-author-name" itemprop="name">Likianta</p>
              <p class="site-description motion-element" itemprop="description">Android Dev</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">73</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="http://blog.csdn.net/likianta" target="_blank" title="CSDN">
                      
                        <i class="fa fa-fw fa-crosshairs"></i>CSDN</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:sheerish@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/likianta" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://weibo.com/5441767757/profile?rightmod=1&wvr=6&mod=personinfo" target="_blank" title="Weibo">
                      
                        <i class="fa fa-fw fa-weibo"></i>Weibo</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#Aegisub时间码"><span class="nav-text">Aegisub时间码</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#Aegisub每秒“溢出”"><span class="nav-text">Aegisub每秒“溢出”</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#实战：将Aegisub时间码转换为AE时间码"><span class="nav-text">实战：将Aegisub时间码转换为AE时间码</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#第一步：还原为实际时间"><span class="nav-text">第一步：还原为实际时间</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#第二步：利用AE表达式转换为AE时间码"><span class="nav-text">第二步：利用AE表达式转换为AE时间码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#第三步：改进（减一帧）"><span class="nav-text">第三步：改进（减一帧）</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#相关阅读"><span class="nav-text">相关阅读</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; 2017 &mdash; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Likianta</span>

  
</div>


  <div class="powered-by">
    <i class="fa fa-user-md"></i>
    <span id="busuanzi_container_site_pv">
      Site visitors:<span id="busuanzi_value_site_pv"></span>
    </span>
  </div>

<!--
  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Mist</a> v5.1.3</div>

-->



<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">Site words total count:75.2k</span>
</div>
        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.3"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.3"></script>



  


  




	





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  












  





  

  

  

  
  
  
  <link rel="stylesheet" href="/lib/needsharebutton/needsharebutton.css">

  
  
  <script src="/lib/needsharebutton/needsharebutton.js"></script>

  <script>
    
      pbOptions = {};
      
          pbOptions.iconStyle = "box";
      
          pbOptions.boxForm = "horizontal";
      
          pbOptions.position = "bottomCenter";
      
          pbOptions.networks = "Weibo,Wechat,Douban,QQZone,Evernote";
      
      new needShareButton('#needsharebutton-postbottom', pbOptions);
    
    
  </script>

  

  

  

  

</body>
</html>
